package com.ahtcm.tcmlearning.exception;


import lombok.Data;

@Data
public class TcmException extends  RuntimeException{

    //自定义错误码
    private Integer  code;

    public TcmException(){}

    public TcmException(ResultEnum resultEnum){
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }
}
